import { TabBarItem } from '@tarojs/taro';
export default defineAppConfig({
    pages: [
        // 首页
        'pages/index/index',
        // 城市
        'pages/city/index',
        // 我的
        'pages/my/index',
        // 影院
        'pages/cinema/index',
        // 登录
        'pages/login/index',
        // 用户协议
        'pages/agreement/index',
        // 订单列表
        'pages/order/index',
        // 订单详情
        'pages/order/detail/index',
        // （电影） - 选择日期.影院
        'pages/movie/theaterList/index',
        // 电影场次
        'pages/movie/theaterDetail/index',
        // 选座
        'pages/movie/seatSelect/index',
        // 确认订单
        'pages/order/confirm/index',
    ],
    lazyCodeLoading: 'requiredComponents',
    window: {
        backgroundTextStyle: 'dark',
        navigationBarBackgroundColor: '#fff',
        navigationBarTitleText: '',
        navigationBarTextStyle: 'black',
    },
    requiredPrivateInfos: [
        'getLocation',
        'chooseAddress',
        'chooseLocation',
        'choosePoi',
        'onLocationChange',
        'startLocationUpdateBackground',
        'startLocationUpdate',
    ],
    tabBar: {
        color: '#ACACAC',
        selectedColor: '#F9DEA2',
        backgroundColor: '#2F3543',
        // list 必须大于1
        list: [
            {
                text: '首页',
                pagePath: 'pages/index/index',
                selectedIconPath: './common/assets/index_selected.png',
                iconPath: './common/assets/index.png',
            },
            {
                text: '影院',
                pagePath: 'pages/cinema/index',
                selectedIconPath: './common/assets/index_selected.png',
                iconPath: './common/assets/index.png',
            },
            {
                text: '订单',
                pagePath: 'pages/order/index',
                selectedIconPath: './common/assets/order_selected.png',
                iconPath: './common/assets/order.png',
            },
            {
                text: '我的',
                pagePath: 'pages/my/index',
                selectedIconPath: './common/assets/my_selected.png',
                iconPath: './common/assets/my.png',
            },
        ].filter((item) => !!item) as TabBarItem[],
    },
    permission: {
        'scope.userLocation': {
            desc: '你的位置信息将用于小程序定位附近影院',
        },
        
    },
});
